-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (39 loc) · 952 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (39 loc) · 952 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
42
services:
321vegandb:
container_name: ${POSTGRES_HOST}
image: postgres:17.5-bookworm
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- 321vegan_postgres_data:/var/lib/postgresql/data
ports:
- "${POSTGRES_PORT}:${POSTGRES_PORT}"
restart: unless-stopped
321veganapi:
container_name: 321veganapi
build: .
volumes:
- .:/app
ports:
- "8000:8000"
depends_on:
- 321vegandb
env_file:
- .env
environment:
- PATH=/app/bin:$PATH
restart: unless-stopped
321veganpgadmin:
container_name: 321veganpgadmin
image: dpage/pgadmin4
environment:
- PGADMIN_DEFAULT_EMAIL=${PGADMIN_DEFAULT_EMAIL}
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_DEFAULT_PASSWORD}
ports:
- "5050:80"
depends_on:
- 321vegandb
volumes:
321vegan_postgres_data: