-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose-development.yml
executable file
·48 lines (43 loc) · 1.22 KB
/
docker-compose-development.yml
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
# This is the production variant of
# docker deployment for {{app_name}}
version: '3'
services:
# development instance
app-development:
image: index.docker.io/{{docker_account}}/{{app_name}}:development
container_name: 'app-development'
ports:
- 3000:3000
environment:
- NODE_ENV=development
- MONGO_HOST=database
- MONGO_DB={{app_name}}-development
- HOST=http://{{aws_development}}/development/api/
env_file:
- .env
app-admin:
image: index.docker.io/{{docker_account}}/{{app_name}}:development
container_name: 'app-admin'
ports:
- 8001:8001
environment:
- NODE_ENV=development
- URL=http://{{aws_development}}/development/api/
# nginx for port forwarding and proxy server
nginx:
image: nginx:latest
container_name: 'nginx'
depends_on:
- app-development
ports:
- "80:80"
volumes:
- ./configurations/nginx-development.conf:/etc/nginx/conf.d/default.conf
# - ./certs:/etc/nginx/certs
watchtower:
image: v2tec/watchtower
container_name: 'watchtower'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./.docker/config.json:/config.json
command: --interval 10 --cleanup