This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
70 lines (70 loc) · 1.74 KB
/
docker-compose.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: "3.8"
services:
mongodb:
image: "mongo:4.2.10-bionic"
restart: always
networks:
- backend
volumes:
- ~/wmd-data/mongodb:/data/db
controller:
build: "./controller"
restart: always
env_file:
- ./controller/.env
expose:
- 8080
environment:
MONGO_CONN_STRING: mongodb://mongodb
GOOGLE_APPLICATION_CREDENTIALS: /usr/src/app/firebase-credentials.json
WAIT_HOSTS: mongodb:27017
WAIT_HOSTS_TIMEOUT: 300
WAIT_SLEEP_INTERVAL: 10
WAIT_HOST_CONNECT_TIMEOUT: 30
VIRTUAL_HOST: ${SERVER_VIRTUAL_HOST}
VIRTUAL_PORT: 8080
LETSENCRYPT_HOST: ${SERVER_VIRTUAL_HOST}
LETSENCRYPT_EMAIL: ${DEFAULT_EMAIL}
networks:
- backend
volumes:
- ~/wmd-data/mongodb:/data/db:ro
- ~/wmd-snapshots:/snapshots
webapp:
restart: always
build: "./webapp"
expose:
- 80
environment:
VIRTUAL_HOST: ${WEB_VIRTUAL_HOST}
VIRTUAL_PORT: 80
LETSENCRYPT_HOST: ${WEB_VIRTUAL_HOST}
LETSENCRYPT_EMAIL: ${DEFAULT_EMAIL}
networks:
- backend
nginx-proxy-letsencrypt:
image: "jrcs/letsencrypt-nginx-proxy-companion:latest"
restart: always
volumes_from:
- nginx-proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
DEFAULT_EMAIL: ${DEFAULT_EMAIL}
nginx-proxy:
image: "jwilder/nginx-proxy:alpine"
restart: always
ports:
- 80:80
- 443:443
volumes:
- ./nginx/certs:/etc/nginx/certs
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/vhost.d:/etc/nginx/vhost.d
- ./nginx/html:/usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
- backend
networks:
backend:
driver: bridge