generated from juanjiTech/jframe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (45 loc) · 1.03 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
version: '3.8'
services:
hermes-test:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./config.yaml:/Serve/config.yaml
- ./Caddyfile:/etc/caddy/Caddyfile
- /root/Hermes/supervisord.conf:/Serve/supervisord.conf
- ./log-docker.log:/Serve/latest.log
container_name: hermes
restart: unless-stopped
ports:
- "80:80"
- "443:443"
depends_on:
- hermes-rds
- hermes-postgres
network_mode: host
hermes-rds:
image: redis
container_name: hermes-rds-ctn-template
ports:
- "26379:6379"
networks:
- hermes-network
volumes:
- /root/dev/Hermes/rds-data:/data
hermes-postgres:
image: postgres:latest
container_name: hermes-ctn-template
ports:
- "25432:5432"
environment:
- POSTGRES_USER=hermes
- POSTGRES_PASSWORD=123456
- POSTGRES_DB=hermes
networks:
- hermes-network
volumes:
- /root/dev/Hermes/pg-data:/var/lib/postgresql/data
networks:
hermes-network:
driver: bridge