forked from kee-reel/LATEST
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
86 lines (79 loc) · 1.57 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
84
85
86
version: '3'
services:
db:
build: ./db
ports:
- ${POSTGRES_EXT_PORT}:5432
restart: always
networks:
- internet
env_file: .env
volumes:
- postgresVolume:/var/lib/postgresql/data
- ./logs:/logs
redis:
build:
context: ./redis
args:
REDIS_TASK_LIST: ${REDIS_TASK_LIST}
REDIS_RESULT_LIST: ${REDIS_RESULT_LIST}
REDIS_RUNNER_USER: ${REDIS_RUNNER_USER}
REDIS_RUNNER_PASSWORD: ${REDIS_RUNNER_PASSWORD}
ports:
- ${REDIS_EXT_PORT}:${REDIS_PORT}
restart: always
networks:
- internet
- no-internet
web:
build: ./web
ports:
- ${WEB_PORT}:${WEB_PORT}
links:
- db
- redis
- runner
depends_on:
- db
- redis
networks:
- internet
env_file: .env
volumes:
- /etc/letsencrypt:/etc/letsencrypt
runner:
restart: always
links:
- redis
depends_on:
- redis
networks:
- no-internet
environment:
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
- REDIS_TASK_LIST=${REDIS_TASK_LIST}
- REDIS_RESULT_LIST=${REDIS_RESULT_LIST}
- REDIS_RUNNER_USER=${REDIS_RUNNER_USER}
- REDIS_RUNNER_PASSWORD=${REDIS_RUNNER_PASSWORD}
manage:
build: ./manage
links:
- web
- db
networks:
- internet
stdin_open: true
tty: true
env_file: .env
volumes:
- tests:/home/docker/app/tests
volumes:
tests:
postgresVolume:
networks:
no-internet:
driver: bridge
internal: true
internet:
driver: bridge