-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (46 loc) · 1020 Bytes
/
docker-compose.yml
File metadata and controls
50 lines (46 loc) · 1020 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: "3.6"
services:
db:
image: postgres:10.4-alpine
volumes:
- db-data:/var/lib/postgresql/data
deploy:
placement:
constraints: [node.role == manager]
web:
restart: always
image: nginx:1.15-alpine
container_name: docdog-engine_web
environment:
- VIRTUAL_HOST=www.docdog.io,docdog.io
- VIRTUAL_PORT=80
- LETSENCRYPT_HOST=www.docdog.io,docdog.io
- LETSENCRYPT_EMAIL=hello@docdog.io
volumes:
- /etc/nginx/conf.d
- /etc/nginx/vhost.d
- ./config/nginx.conf:/etc/nginx/conf.d/docdog.conf:ro
- ./src/public:/usr/share/nginx/html
app:
image: docdog-app
container_name: docdog-engine_app
build:
context: .
target: app
args:
- BUILD_ENV=dev # Default environment
- PORT=4000
volumes:
- .:/opt/app
ports:
- 4000:4000
env_file:
- .env
depends_on:
- db
volumes:
db-data:
networks:
default:
external:
name: nginx-proxy