-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
88 lines (82 loc) · 2.11 KB
/
docker-compose.yml
File metadata and controls
88 lines (82 loc) · 2.11 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
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
87
88
version: '2.13'
services:
db:
container_name: ${DB_CONTAINER_NAME}
image: postgres:15
environment:
POSTGRES_DB: "${POSTGRES_DB}"
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
PGDATA: "${PGDATA}"
volumes:
- ./databases/docker-entrypoint-initdb.d/:/docker-entrypoint-initdb.d
- ./databases/data:/var/lib/postgresql/data
ports:
- "5432:${POSTGRES_PORT}"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}" ]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
restart: unless-stopped
deploy:
resources:
limits:
cpus: '1'
memory: 4G
pgadmin:
container_name: ${PG_CONTAINER_NAME}
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: "${PGADMIN_EMAIL}"
PGADMIN_DEFAULT_PASSWORD: "${PGADMIN_PASSWORD}"
PGADMIN_CONFIG_SERVER_MODE: "False"
volumes:
- ./databases/pgadmin:/var/lib/pgadmin
ports:
- "5050:${PG_EXTERNAL_PORT}"
restart: unless-stopped
deploy:
resources:
limits:
cpus: '0.5'
memory: 1G
depends_on:
- db
redis:
container_name: ${REDIS_CONTAINER_NAME}
build: redis
command: ["redis-server", "/etc/redis/redis.conf"]
volumes:
- ./redis:/etc/redis/redis.conf
ports:
- "6379:${REDIS_PORT}"
web:
container_name: ${WEB_CONTAINER_NAME}
build: support
env_file:
- .env
entrypoint: ["sh", "docker-entrypoint.sh"]
volumes:
- ./support:/support
restart: unless-stopped
depends_on:
- db
flower:
container_name: ${FLOWER_CONTAINER_NAME}
image: mher/flower
ports:
- '${FLOWER_PORT}:${FLOWER_PORT}'
command: ['celery', '--broker=${REDIS_URL}', 'flower', '--basic_auth=${FLOWER_LOGIN}:${FLOWER_PASSWORD}']
depends_on:
- web
- redis
nginx:
container_name: ${NGINX_CONTAINER_NAME}
build: ./nginx
ports:
- '${NGINX_IN_PORT}:${NGINX_EXT_PORT}'
depends_on:
- web
restart: unless-stopped