-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (59 loc) · 1.6 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
59
60
61
62
version: "3.8"
services:
app:
container_name: app_spotifyMe
image: ericdwkim/spotifyme-flask:v2
depends_on:
- db
build: .
restart: always
ports:
- "7777:5000"
environment:
FLASK_ENV: development
volumes:
- postgresdata:/var/lib/postgresql/data
networks:
- app-network
db:
container_name: pg_spotifyMe
image: ericdwkim/spotify-me-pg:v1
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_DB: spotify
POSTGRES_HOST_AUTH_METHOD: trust
PGUSER: postgres
ports:
- "5432:5432"
volumes:
- postgresdata:/var/lib/postgresql/data
networks:
- app-network
pgadmin:
container_name: pgadmin_spotifyMe
image: ericdwkim/spotify-me-pgadmin:v1
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: ericdwkim.io@gmail.com
PGADMIN_DEFAULT_PASSWORD: admin123
PGADMIN_LISTEN_PORT: 5433
PGADMIN_CONFIG_SERVER_MODE: "False"
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: "False"
PGADMIN_CONFIG_UPGRADE_CHECK_ENABLED: "False"
ports:
- "5433:5433"
# - "5050:80"
# expose:
# - "80"
depends_on:
- db
volumes:
- ./data/pgadmin:/var/lib/pgadmin
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
postgresdata: