-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (43 loc) · 932 Bytes
/
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
version: '3'
services:
db:
image: postgres:12.4
container_name: underline-db
environment:
POSTGRES_HOST_AUTH_METHOD: "trust"
volumes:
- .:/code
underline:
build:
context: .
dockerfile: ./docker/Docker.server/Dockerfile
image: underline
env_file: .env
container_name: underline
user: ${CURRENT_UID}
volumes:
- .:/code
ports:
- "5000:5000"
depends_on:
- db
links:
- db:postgres
redis:
image: redis
container_name: underline-redis
restart: on-failure
celery:
image: 'underline:latest'
command: celery -A underline worker -B -l INFO
container_name: underline-celery
volumes:
- .:/code
environment:
- DJANGO_SETTINGS_MODULE=underline.settings
env_file: .env
depends_on:
- redis
- db
- underline
restart: on-failure