forked from Julesfpollender/hackatown2018
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
84 lines (76 loc) · 1.57 KB
/
docker-compose.yaml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: '3'
networks:
front:
back:
db:
web:
services:
frontend:
build: ./Frontend
environment:
VIRTUAL_HOST: "caremmunity.archsirius.com"
VIRTUAL_PORT: "3000"
links:
- backend
networks:
- front
restart: always
backend:
build: ./Backend
environment:
MONGODB_URI: "mongodb://db/hackatown2018"
SECRET: "hwhk7lumNzVTldE9dNRblx0r1e5YFyjq"
SEED: "false"
VIRTUAL_HOST: "api.caremmunity.archsirius.com"
VIRTUAL_PORT: "8080"
links:
- db
networks:
- front
- back
restart: always
db:
image: mongo
networks:
- back
- db
restart: always
volumes:
- configdb:/data/configdb
- db:/data/db
admin:
environment:
ME_CONFIG_BASICAUTH_USERNAME: "admin"
ME_CONFIG_BASICAUTH_PASSWORD: "b0UvYiBRpc7rm3nYBN5efDwHJOj3d3xO"
image: mongo-express:latest
links:
- db:mongo
networks:
- db
ports:
- "8081:8081"
nginx:
image: nginx
networks:
- front
- web
ports:
- "80:80"
- "443:443"
restart: always
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
nginx-gen:
command: -notify-sighup nginx -watch -wait 5s:30s /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
image: jwilder/docker-gen
networks:
- front
- web
restart: always
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
volumes:
configdb:
db: