-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (51 loc) · 1.24 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
version: "3"
services:
catcat-bots:
container_name: catcat-bots
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile
env_file: .env
environment:
- PORT=${PORT:-9095}
- PM2_PORT=${PM2_PORT:-8095}
image: catcatio/bots
working_dir: /usr/app
ports:
- "${PORT:-9095}:${PORT:-9095}"
- "${PM2_PORT:-8095}:${PM2_PORT:-8095}"
depends_on:
- postgres
volumes:
- .:/usr/app
# logging:
# driver: gelf
# options:
# gelf-address: udp://localhost:${LS_PORT:-12201}
# tag: "catcat-bots"
command: sh scripts/startup.sh
postgres:
image: postgres:9.6
restart: unless-stopped
volumes:
- ./pg_data:/var/lib/postgresql/data
- ./scripts/initdb.d:/docker-entrypoint-initdb.d
ports:
- 5432:5432
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: password
pgadmin:
image: dpage/pgadmin4
restart: unless-stopped
env_file: .env
environment:
- PGADMIN_PORT=${PGADMIN_PORT:-9095}
ports:
- ${PGADMIN_PORT:-9095}:80
volumes:
- ./pgadmin_data:/var/lib/pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: password