-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (56 loc) · 1.13 KB
/
docker-compose.yml
File metadata and controls
61 lines (56 loc) · 1.13 KB
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
version: "3.1"
services:
postgres:
image: "postgres:latest"
labels:
wizard: "wizard"
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_USER: zzh
POSTGRES_PASSWORD: "123"
networks:
- archie_net
volumes:
- ./docker/db/postgres.init.sql:/docker-entrypoint-initdb.d/postgres.init.sql
redis:
image: redis:latest
labels:
wizard: "wizard"
restart: always
ports:
- "6379:6379"
volumes:
- redis_data:/var/lib/redis/data
networks:
- archie_net
nginx:
image: nginx:latest
labels:
wizard: "wizard"
volumes:
- ./docker/configs/nginx.conf:/etc/nginx/nginx.conf
networks:
- archie_net
ports:
- "8080:8080"
archie:
image: younccat/archie
command: sh -c "./wait-for-it.sh postgres:5432 -- `RUNTIME_ENV=production ./archie`"
container_name: archie
networks:
- archie_net
depends_on:
- postgres
ports:
- "4000:4000"
networks:
archie_net:
external:
name: archie_net
volumes:
postgres_data:
external: true
redis_data:
external: true