-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) · 814 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (37 loc) · 814 Bytes
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
services:
postgres:
image: postgres:18
container_name: zae-postgres
environment:
POSTGRES_DB: zae
POSTGRES_USER: zae
POSTGRES_PASSWORD: zae
ports:
- "5432:5432"
volumes:
- zae_postgres_data:/var/lib/postgresql
redis:
image: redis:7-alpine
container_name: zae-redis
ports:
- "6379:6379"
api:
build: .
container_name: zae-api
ports:
- "8000:8000"
env_file:
- .env
environment:
- ENV_STATE=dev
- DEV_DATABASE_URL=postgresql+asyncpg://zae:zae@postgres:5432/zae
- DEV_REDIS_URL=redis://redis:6379/0
depends_on:
- postgres
- redis
volumes:
- ./src:/zae/src
- ./dev_start.sh:/zae/start.sh
command: ["/bin/bash", "/zae/start.sh"]
volumes:
zae_postgres_data: