-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml.bak
75 lines (75 loc) · 1.85 KB
/
docker-compose.yml.bak
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
version: "3.8"
services:
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./config/proxy.conf:/etc/nginx/conf.d/proxy.conf:ro
- ./certs:/etc/nginx/certs
- ./vhost:/etc/nginx/vhost.d
- ./html:/usr/share/nginx/html
nginx-proxy-acme:
image: nginxproxy/acme-companion
container_name: nginx-proxy-acme
volumes_from:
- nginx-proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./acme:/etc/acme.sh
environment:
- DEFAULT_EMAIL=
depends_on:
- nginx-proxy
frontend:
container_name: frontend
build:
context: ./3dworld
dockerfile: Dockerfile
expose:
- 80
volumes:
- ./3dworld:/usr/src/app
environment:
- VIRTUAL_HOST=buildverse.live
- LETSENCRYPT_HOST=buildverse.live
depends_on:
- nginx-proxy-acme
backend:
container_name: backend
build:
context: ./backend
dockerfile: Dockerfile
expose:
- 3000
volumes:
- ./backend:/usr/src/app
depends_on:
- nginx-proxy-acme
- mongodb
- redis
environment:
- VIRTUAL_HOST=
- LETSENCRYPT_HOST=
- MONGO_URI=mongodb://<username>:<password>@mongodb:27017 # same as mongodb env username and password
- MONGO_DB_NAME=
- REDIS_URI=redis
- ADMIN_SUB=admin|<password>
- FRONTEND_BASE_URL=
- SESSION_SECRET=
- SEND_GRID_API_KEY=
mongodb:
container_name: mongodb
image: mongo
ports:
- 27017:27017
environment:
- MONGO_INITDB_ROOT_USERNAME=
- MONGO_INITDB_ROOT_PASSWORD=
- MONGO_INITDB_DATABASE=
redis:
container_name: redis
image: redis