-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (44 loc) · 1.04 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
# phantom - docker-composer.yml of postgresql + redis + pgadmin, for sample only.
# (c) 2023 SuperSonic (https://github.com/supersonictw)
version: "3.5"
services:
database:
image: postgres:12-alpine
container_name: phantom-data
ports:
- 127.0.0.1:2101:5432
volumes:
- database:/var/lib/postgresql/data
networks:
- phantom
environment:
POSTGRES_PASSWORD: phantom-admin
restart: always
cache:
image: redis:7.0
container_name: phantom-cache
ports:
- 127.0.0.1:2102:6379
networks:
- phantom
restart: always
pgadmin:
image: dpage/pgadmin4:6.15
container_name: phantom-pga
ports:
- 127.0.0.1:2103:80
networks:
- phantom
environment:
PGADMIN_DEFAULT_EMAIL: "postgres@example.org"
PGADMIN_DEFAULT_PASSWORD: "phantom-admin"
PGADMIN_CONFIG_SESSION_EXPIRATION_TIME: 365
PGADMIN_CONFIG_MAX_SESSION_IDLE_TIME: 60
restart: always
volumes:
database:
driver: local
networks:
phantom:
name: phantom
driver: bridge