-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
71 lines (66 loc) · 1.31 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
71
version: "3.1"
services:
mysql:
image: mariadb:latest
container_name: portal_pacientes_db
environment:
MYSQL_ROOT_PASSWORD: <password>
MYSQL_DATABASE: <database_name>
MYSQL_USER: <user>
MYSQL_PASSWORD: <password>
restart: always
ports:
- 3306:3306
volumes:
- portal_db_volume:/var/lib/mysql
adminer:
image: adminer
restart: always
ports:
- 8080:8080
# ------
# DEV
# ------
app:
# build: .
image: eamanu/portal_paciente:main
container_name: portal_pacientes_app
env_file:
- .env_backend
restart: always
depends_on:
- mysql
ports:
- 8000:8000
frontend:
image: eamanu/portal_paciente_frontend:main
container_name: portal_pacientes_frontend
restart: always
depends_on:
- app
ports:
- 81:80
# --------
# TEST/PROD
# --------
app_test:
# build: .
image: eamanu/portal_paciente:main
container_name: portal_pacientes_app_test
env_file:
- .env_backend_test
restart: always
depends_on:
- mysql
ports:
- 8001:8000
frontend_test:
image: eamanu/portal_paciente_frontend:main
container_name: portal_pacientes_frontend_test
restart: always
depends_on:
- app
ports:
- 80:80
volumes:
portal_db_volume: