-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
83 lines (80 loc) · 1.95 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
version: '3'
services:
app:
build: .
working_dir: /app
command: ./run.sh docker
volumes:
- .:/app
ports:
- '8810:8810'
logging:
options:
max-size: "500k"
max-file: "10"
restart: always
links:
- db
- server
db:
image: postgres
environment:
POSTGRES_PASSWORD: password
POSTGRES_DB: postgres
POSTGRES_USER: user
# Set health checks to wait until postgres has started
healthcheck:
test: ["CMD-SHELL", "pg_isready -U user -d postgres"]
interval: 10s
timeout: 5s
retries: 5
ports:
- 5433:5432
volumes:
- ./data:/docker-entrypoint-initdb.d
restart: always
server:
image: nginx:alpine
ports:
- '8800:80'
volumes:
- .:/app
- ./etc/nginx/sites-enabled:/etc/nginx/sites-enabled
restart: always
# celery:
# build: .
# working_dir: /app
# command: celery worker -A workers:celery --loglevel=info -B
# depends_on:
# - redis
# environment:
# SENTRY_DSN: ${SENTRY_DSN_CELERY}
# PROJECT_DIR: ${PROJECT_DIR}
# volumes:
# - .:/app
# logging:
# options:
# max-size: "500k"
# max-file: "10"
# restart: always
# redis:
# image: redis:latest
# command: redis-server --appendonly yes --maxmemory 2048mb
# #--slaveof no one
# # environment:
# # - REDIS_REPLICATION_MODE=master
# #privileged: true
# sysctls:
# - net.core.somaxconn=1024
# # - vm.overcommit_memory=1
# volumes:
# - ./redis.conf:/usr/local/etc/redis/redis.conf
# restart: always
# # flower:
# # image: mher/flower
# # command: ["flower", "--broker=redis://redis:6379/0", "--port=5555", "--url_prefix=flower"]
# # ports:
# # - "5555:5555"
# # environment:
# # - CELERY_BROKER_API=redis://redis:6379/0
# # - CELERY_BROKER_URL=redis://redis:6379/0