forked from UNOGroup-Practicum/uno-game
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (55 loc) · 1.5 KB
/
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
51
52
53
54
55
56
57
58
version: "3.9"
services:
app:
container_name: practicum-app
image: practicum-app
build:
context: .
dockerfile: Dockerfile
restart: always
ports:
- "${CLIENT_PORT}:${CLIENT_PORT}"
- "${SERVER_PORT}:${SERVER_PORT}"
environment:
SERVER_PORT: ${SERVER_PORT}
POSTGRES_HOST: ${POSTGRES_DB}
POSTGRES_PORT: 5432
depends_on:
- uno-db
networks:
- awesome
uno-db:
container_name: practicum-postgres
image: postgres:14
ports:
- "${POSTGRES_PORT}:5432"
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- ./postgresdata:/var/lib/postgresql/data
- ./src/migrations/dbinit.sql:/docker-entrypoint-initdb.d/dbinit.sql
networks:
- awesome
pgadmin:
container_name: practicum-pgadmin
image: dpage/pgadmin4:6.21
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: secret
PGADMIN_LISTEN_PORT: 80
ports:
- "8080:80"
volumes:
- pgadmin-data:/var/lib/pgadmin
depends_on:
- uno-db
networks:
- awesome
volumes:
pgadmin-data:
networks:
awesome:
driver: bridge