-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
47 lines (43 loc) · 1.11 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
version: '3.6'
services:
django:
build:
context: .
dockerfile: ./compose/django/Dockerfile
# args:
# - DEBUG=${DEBUG}
init: true
restart: always
sysctls:
net.core.somaxconn: 2048
command: ./compose/django/start.sh
environment:
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT:-5432}/${POSTGRES_DB}
- DOCKER=true
depends_on:
- postgres
- redis
- memcached
volumes:
- ./judge/fixtures:/app/judge/fixtures
- ./utils/fixtures:/app/utils/fixtures
postgres:
image: postgres:14.2-alpine3.15
command: postgres -c 'max_connections=200'
restart: always
shm_size: 256MB
environment:
# - PGHOST=postgres
- PGPORT=${POSTGRES_PORT:-5432}
# - PGDATABASE=${POSTGRES_DB}
# - PGUSER=${POSTGRES_USER}
# - PGPASSWORD=${POSTGRES_PASSWORD}
# - PGOPTIONS=${POSTGRES_INITDB_ARGS}
redis:
build: ./compose/redis
restart: always
sysctls:
net.core.somaxconn: '511'
memcached:
image: memcached:1.6.14-alpine3.15
restart: always