forked from GNOME-Nepal/site-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
78 lines (69 loc) · 1.44 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
services:
app:
container_name: gnome_app
restart: unless-stopped
build:
context: .
target: $DOCKERFILE_TARGET
volumes:
- gnome_data:/app/
- .:/app
depends_on:
- redis
- worker_beat
ports:
- "8000:8000"
env_file: docker.env
networks:
- gnome_net
worker_beat:
restart: unless-stopped
build:
context: .
target: worker
command: ["/bin/sh", "-c", "celery -A core worker -l info --concurrency=1"]
volumes:
- gnome_data:/app/
- .:/app
env_file: docker.env
networks:
- gnome_net
postgres:
image: postgres:alpine
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
ports:
- "${DB_PORT}:5432"
volumes:
- pg_data:/var/lib/postgresql/data
networks:
- gnome_net
redis:
container_name: gnome_syncer_redis
image: redis:alpine
restart: always
volumes:
- gnome_data:/app/
networks:
- gnome_net
flower:
image: mher/flower
command: ['celery', '--broker=redis://redis:6379', 'flower', '--port=5555', "--basic-auth=$FLOWER_USERNAME:$FLOWER_PASSWORD"]
ports:
- 7777:5555
env_file: docker.env
depends_on:
- redis
networks:
- gnome_net
volumes:
gnome_data:
driver: local
pg_data:
driver: local
networks:
gnome_net:
driver: bridge
name: gnome_net