-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
82 lines (75 loc) · 1.69 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
72
73
74
75
76
77
78
79
80
81
82
version: '3.1'
services:
nginx:
image: nginx
container_name: nginx_proxy
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
ports:
- 80:80
depends_on:
- notitas_auth
- notitas_back
- notitas_email
notitas_auth:
build: ./notitas_auth/
container_name: notitas_auth
tty: true
ports:
- 3000:3000
environment:
TZ: America/Hermosillo
volumes:
- ./notitas_auth:/home/node/app
- /home/node/app/node_modules
depends_on:
notitas_pg_db:
condition: service_healthy
command: sh -c "npm run dev"
notitas_back:
build: ./notitas_back/
container_name: notitas_back
ports:
- 8000:8000
volumes:
- ./notitas_back:/app
depends_on:
notitas_pg_db:
condition: service_healthy
command: sh -c "python src/main.py"
notitas_email:
build: ./notitas_email/
container_name: notitas_email
tty: true
environment:
TZ: America/Hermosillo
volumes:
- ./notitas_email:/home/node/app
- /home/node/app/node_modules
command: sh -c "npm run dev"
notitas_pg_db:
image: postgres:15.2
container_name: notitas_pg_db
environment:
POSTGRES_PASSWORD: example
POSTGRES_DB: notitas
TZ: America/Hermosillo
volumes:
- ./DB/postgresql:/var/lib/postgresql/data
ports:
- 5432:5432
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 10s
timeout: 5s
retries: 5
adminer:
image: adminer
environment:
TZ: America/Hermosillo
ADMINER_DESIGN: "ng9"
ports:
- 8080:8080
depends_on:
notitas_pg_db:
condition: service_started