-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
81 lines (75 loc) · 1.51 KB
/
compose.yaml
File metadata and controls
81 lines (75 loc) · 1.51 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
services:
redis:
image: "redis:7.2.4-alpine3.19"
command: "redis-server --requirepass $REDIS_PASSWORD"
networks:
- api_network
azurite:
build:
context: functions
dockerfile: Dockerfile-azurite
networks:
- api_network
volumes:
- azurite:/opt/azurite
- certs:/etc/ssl/certs
postgres:
image: "postgres:17.1-alpine3.20"
networks:
- api_network
volumes:
- pgdata:/var/lib/postgresql/data
environment:
- "POSTGRES_USER=$DB_USER"
- "POSTGRES_PASSWORD=$DB_PASSWORD"
- "POSTGRES_DB=$DB_NAME"
ports:
- "$DB_PORT_EXT:$DB_PORT"
healthcheck:
test: ["CMD", "pg_isready", "-U", "$DB_USER", "-d", "$DB_NAME"]
interval: 1s
timeout: 3s
retries: 5
api:
build:
context: api
dockerfile: Dockerfile-dev
volumes:
- ./api:/api
- certs:/etc/ssl/certs
networks:
- api_network
ports:
- 8000:8000
env_file:
- .env
depends_on:
redis:
condition: service_started
postgres:
condition: service_healthy
functions:
build:
context: .
dockerfile: ./functions/Dockerfile-dev
volumes:
- ./api:/api
- ./functions:/functions
- certs:/etc/ssl/certs
networks:
- api_network
ports:
- 7071:7071
env_file:
- .env
depends_on:
- azurite
volumes:
pgdata:
driver: local
certs:
driver: local
azurite:
driver: local
networks:
api_network: