-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 766 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 766 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
41
services:
backend:
container_name: flutteractixapp_backend
image: flutteractixapp_backend
build:
context: ./backend
dockerfile: Dockerfile
env_file:
- ./backend/.env.docker
command: bash -c "sqlx migrate run
&& cargo watch -q -c -w src/ -x run"
ports:
- "8000:8000"
volumes:
- ./backend:/app
networks:
- app-network
db:
image: flutteractixapp_db
build:
context: ./db
dockerfile: Dockerfile
env_file:
- ./db/.env
volumes:
- ./postgres_data:/var/lib/postgresql/data
ports:
- 5432:5432
expose:
- "5432"
command: -p 5432
networks:
- app-network
volumes:
postgres_data:
networks:
app-network:
driver: bridge