Skip to content
Permalink
39c1d21bd7
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
46 lines (45 sloc) 924 Bytes
version: '2'
services:
postgres:
container_name: sdp-smarthotels-pg
hostname: sdp-smarthotels-pg
image: sdp-smarthotels-pg
build: postgres/
ports:
- "5432:5432"
volumes:
- psql-data:/var/lib/postgresql/data
expose:
- 5432
environment:
POSTGRES_USER: docker
POSTGRES_PASSWORD: docker
web:
container_name: sdp-smarthotels
hostname: sdp-smarthotels
image: sdp-smarthotels
build: web/
ports:
- "8000:8000"
depends_on:
- postgres
nginx:
container_name: sdp-smarthotels-nginx
hostname: sdp-smarthotels-nginx
image: sdp-smarthotels-nginx
build: nginx/
volumes:
- certs:/etc/letsencrypt:ro
- certs-data:/data/letsencrypt:ro
ports:
- "80:80"
- "443:443"
depends_on:
- web
volumes:
psql-data:
driver: local
certs:
driver: local
certs-data:
driver: local