-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml.old
89 lines (81 loc) · 1.64 KB
/
docker-compose.yml.old
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
85
86
87
88
89
version: '3'
services:
client:
build:
context: ./profile-server
# args:
# network: host
ports:
- 3000:3000
depends_on:
- server
restart: always
# network_mode: host
networks:
- public
environment:
DANGEROUSLY_DISABLE_HOST_CHECK: "true"
# REACT_APP_API_ENDPOINT: "http://server:3005"
server:
build:
context: .
# args:
# network: host
container_name: server
ports:
- 3005:3005
depends_on:
- mongoose
restart: always
# network_mode: host
networks:
- public
environment:
DANGEROUSLY_DISABLE_HOST_CHECK: "true"
# REACT_APP_API_ENDPOINT: "http://server:3005"
mongoose:
image: mongo
container_name: mongoose
volumes:
- ./mongo/data:/data/db
ports:
- 27017:27017
# network_mode: host
networks:
- public
nginx:
restart: always
build:
context: nginx
args:
- HOSTNAME=${HOSTNAME}
ports:
- 80:80
- 443:443
container_name: docker_nginx
volumes:
- ./nginx/letsencrypt:/usr/share/nginx/html
- ./certbot/etc:/usr/share/keys
# network_mode: host
networks:
- public
# Certbot for SSL automation
#
certbot:
container_name: 'docker_certbot'
image: certbot/certbot
volumes:
- ./keys:/var/lib/letsencrypt
- ./nginx/letsencrypt:/data/letsencrypt
- ./certbot/etc:/etc/letsencrypt
- ./certbot/log:/var/log/letsencrypt
# depends_on:
# - nginx
ports:
- 8080:8080
# network_mode: host
networks:
- public
networks:
public:
driver: bridge