-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
49 lines (45 loc) · 1.02 KB
/
docker-compose.yaml
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
version: "3.8"
services:
db:
container_name: myscheduler-db
image: postgres:13-alpine
env_file: .env
environment:
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
POSTGRES_PORT: ${DB_HOST}
ports:
- ${DB_PORT}:5432
networks:
- myscheduler
pgadmin:
container_name: pgadmin_container
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:[email protected]}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
PGADMIN_CONFIG_SERVER_MODE: 'False'
ports:
- "${PGADMIN_PORT:-5050}:80"
networks:
- myscheduler
restart: unless-stopped
app:
container_name: my-scheduler
build:
context: .
dockerfile: Dockerfile.dev
env_file: .env
volumes:
- .:/home/docker
ports:
- 8000:8000
command: scripts/start.sh
depends_on:
- db
- pgadmin
networks:
- myscheduler
networks:
myscheduler: