-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
57 lines (52 loc) · 1.22 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
50
51
52
53
54
55
56
57
version: '3.8'
services:
app:
image: almayor/correct-me:latest
pull_policy: if_not_present
build:
context: .
dockerfile: Dockerfile
container_name: correct-me
ports:
- "8080:8080"
environment:
- CORRECTME_APP_PORT=${CORRECTME_APP_PORT:-8080}
- CORRECTME_APP_HOST=${CORRECTME_APP_HOST:-localhost}
- CORRECTME_DB_HOST=postgres
- CORRECTME_DB_USER=correctme_db_user
- CORRECTME_DB_PASSWORD=correctme_db_password
- CORRECTME_DB_NAME=correctme_db
depends_on:
- postgres
networks:
- app_network
postgres:
image: postgres:17.0
container_name: postgres_db
environment:
- POSTGRES_USER=correctme_db_user
- POSTGRES_PASSWORD=correctme_db_password
- POSTGRES_DB=correctme_db
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- app_network
pgadmin:
image: dpage/pgadmin4:8.12.0
container_name: pgadmin
environment:
- PGADMIN_DEFAULT_EMAIL=admin@admin.com
- PGADMIN_DEFAULT_PASSWORD=admin
ports:
- "5050:80"
depends_on:
- postgres
networks:
- app_network
volumes:
pgdata:
networks:
app_network:
driver: bridge