-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
167 lines (154 loc) · 3.66 KB
/
docker-compose.yml
File metadata and controls
167 lines (154 loc) · 3.66 KB
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
version: "3.5"
services:
emtu-db:
image: postgres:13
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-1234}
PGDATA: /data/postgres
volumes:
- ./data/postgres:/data/postgres
- ./emtu-api:/node_app
ports:
- "54320:5432"
networks:
- emtu_network
restart: unless-stopped
emtu-api:
tty: true
stdin_open: true
image: node:16
command: make emtu-api-startup
# build:
# context: ./emtu-api/
# dockerfile: Dockerfile
working_dir: /app
volumes:
- ./emtu-api:/app
ports:
- 3333:3333
- 9229:9229
env_file:
- ./emtu-api/.env
depends_on:
- postgres
networks:
- gerneral_network
emtu-web:
tty: true
stdin_open: true
env_file:
- ./emtu-web/.env
image: node:16
working_dir: /app
command: make emtu-web-startup
ports:
- 3000:3000
volumes:
- ./emtu-web:/app
plasmedis-api:
image: thisk8brd/flask-api
container_name: plasmedis-api-container
build:
context: ./plasmedis-api
dockerfile: ./Dockerfile
target: debug
ports:
- 5000:5000
- 5678:5678
volumes:
- ./plasmedis-api:/usr/src/app
environment:
- FLASK_DEBUG=1
env_file:
- ./plasmedis-api/.env
depends_on:
- postgres
entrypoint: [ "python", "-m", "debugpy", "--listen", "0.0.0.0:5678", "-m", "app", "--wait-for-client", "--multiprocess", "-m", "flask", "run", "-h", "0.0.0.0", "-p", "5000" ]
plasmedisDb:
image: postgres:13
container_name: plasmedisDb-container
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-1234}
PGDATA: /data/postgres
ports:
- "5432:5432"
restart: unless-stopped
volumes:
- ./data/postgres-plasmedis:/data/postgres
networks:
- plasmedis_network
plasmedis-web:
tty: true
stdin_open: true
container_name: plasmedis-web-container
env_file:
- ./plasmedis-web/.env
image: node:16
working_dir: /app
command: make plasmedis-web-startup
ports:
- 3001:3000
volumes:
- ./plasmedis-web:/app
environment:
CHOKIDAR_USEPOLLING: "true"
graacc-web:
tty: true
stdin_open: true
image: node:18
working_dir: /app
command: make graacc-web-startup
ports:
- 3002:3000
volumes:
- ./graacc-web:/app
tmpfs: /tmp
environment:
CHOKIDAR_USEPOLLING: "true"
graacc-api-mock:
image: "wiremock/wiremock:latest"
volumes:
- ./graacc-api-mock/mappings:/home/wiremock/mappings
ports:
- 8080:8080
postgres:
image: postgres:13
container_name: postgres-container
env_file:
- ./postgres/.env
ports:
- "5433:5432"
restart: unless-stopped
volumes:
- ./data/postgres:/data/postgres
- ./postgres:/docker-entrypoint-initdb.d
- ./emtu-api:/emtu
networks:
- gerneral_network
nginx:
container_name: nginx
restart: unless-stopped
image: nginx
ports:
- 80:80
- 443:443
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
certbot:
image: certbot/certbot
container_name: certbot
volumes:
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
command: certonly --webroot -w /var/www/certbot --force-renewal --email {digite_seu_email} -d {digite_seu_dominio} --agree-tos
networks:
emtu_network:
driver: bridge
plasmedis_network:
driver: bridge
gerneral_network:
driver: bridge