-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
52 lines (45 loc) · 912 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
version: "3.7"
services:
api:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "8000:8000"
networks:
- my-network
depends_on:
- database
database:
image: postgres:9.6
container_name: database
volumes:
- dbdata=/var/lib/postgresql/data/
user: postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=adminadmin
- POSTGRES_DB=mygamesDB
- PGDATA=/var/lib/postgresql/data/
ports:
- "5432:5432"
networks:
- my-network
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin
environment:
- PGADMIN_DEFAULT_EMAIL=pgadmin4@pgadmin.org
- PGADMIN_DEFAULT_PASSWORD=admin
ports:
- "15432:80"
networks:
- my-network
depends_on:
- database
networks:
my-network:
driver: bridge
volumes:
dbdata: {}