-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
83 lines (77 loc) · 1.69 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: "3.7"
services:
opendata-api:
container_name: opendata-api
tty: true
env_file:
- .env
build:
context: ./
dockerfile: ./docker/node/Dockerfile
image: opendata-api:3.0.0
command: /bin/bash
ports:
- ${PORT}:3000
volumes:
- ./:/usr/app/:cached
networks:
- api-shared
postgres:
container_name: postgres-opendata
image: postgres:15
ports:
- ${DB_PORT}:5432
volumes:
- ./postgresdata:/var/lib/postgresql/data
restart: unless-stopped
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
networks:
- api-shared
pgadmin:
container_name: pgadmin-opendata
image: dpage/pgadmin4:6.14
restart: unless-stopped
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: bewai
PGADMIN_LISTEN_PORT: 80
ports:
- "8080:80"
volumes:
- ./pgadmin-data:/var/lib/pgadmin
depends_on:
- postgres
networks:
- api-shared
pghero:
container_name: pghero-opendata
image: ankane/pghero
environment:
DATABASE_URL: "postgres://${DB_USER}:${DB_PASSWORD}@postgres:${DB_PORT}/${DB_NAME}"
ports:
- 3200:8080
depends_on:
- postgres
networks:
- api-shared
# redis:
# container_name: redis
# hostname: redis
# image: redis:latest
# ports:
# - ${REDIS_PORT}:6379
# volumes:
# - ./redis-data:/data
# command: >
# --requirepass ${REDIS_PASSWORD}
# networks:
# - api-shared
networks:
api-shared:
name: api-shared
volumes:
postgresdata:
pgadmin-data: # redis-data: