-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (46 loc) · 892 Bytes
/
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
version: "3"
networks:
database:
driver: bridge
services:
app:
container_name: app
build:
context: .
target: runner
ports:
- 8000:8000
command: tail -f /dev/null
volumes:
- .:/usr/src/app
- .env.development:/usr/src/app/.env
env_file:
- .env.development
depends_on:
- db
networks:
- database
db:
container_name: db
image: postgres:15
tty: true
ports:
- 5432:5432
volumes:
- .data_dev:/var/lib/postgresql/data
- ./sql/migrations:/docker-entrypoint-initdb.d/
environment:
- POSTGRES_DB=inventory_dev
- POSTGRES_USER=dev
- POSTGRES_PASSWORD=dev
networks:
- database
adminer:
image: adminer:latest
restart: always
ports:
- 3307:8080
environment:
- ADMINER_DESIGN=dracula
networks:
- database