-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
117 lines (110 loc) · 3.01 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
version: "3"
services:
postgres:
image: ${DB_IMG:-postgres}:${DB_TAG:-12.4}
container_name: ${DB_CONTAINER_NAME:-funkwhale-db}
restart: ${DB_RESTART:-unless-stopped}
volumes:
- ${HOST_DB_DIR}:/var/lib/postgresql/data
expose:
- 5432
env_file:
- postgres.env
redis:
image: ${RD_IMG:-redis}:${RD_TAG:-6}
container_name: ${RD_CONTAINER_NAME:-funkwhale-cache}
restart: ${RD_RESTART:-unless-stopped}
volumes:
- ${HOST_CACHE_DIR}:/data
expose:
- 6379
celeryworker:
image: funkwhale/funkwhale:${FUNKWHALE_VERSION:-latest}
container_name: ${CW_CONTAINER_NAME:-funkwhale-celeryworker}
restart: ${CW_RESTART:-unless-stopped}
networks:
- default
- internet-access
depends_on:
- postgres
- redis
volumes:
- "${HOST_MUSIC_DIRECTORY_PATH}:/data/music:ro"
- "${HOST_MEDIA_ROOT}:/data/media"
env_file:
- funkwhale.env
- paths.env
environment:
- C_FORCE_ROOT=true
- FUNKWHALE_HOSTNAME=${FUNKWHALE_HOSTNAME}
command: celery -A funkwhale_api.taskapp worker -l INFO --concurrency=${CELERYD_CONCURRENCY:-0}
celerybeat:
image: funkwhale/funkwhale:${FUNKWHALE_VERSION:-latest}
container_name: ${CB_CONTAINER_NAME:-funkwhale-celerybeat}
restart: ${CB_RESTART:-unless-stopped}
depends_on:
- postgres
- redis
env_file:
- funkwhale.env
environment:
- FUNKWHALE_HOSTNAME=${FUNKWHALE_HOSTNAME} # This is necessary
command: celery -A funkwhale_api.taskapp beat --pidfile= -l INFO
api:
build:
context: api/.
args:
- IMAGE=funkwhale/funkwhale
- TAG=${FUNKWHALE_VERSION:-latest}
container_name: ${AP_CONTAINER_NAME:-funkwhale-api}
restart: ${AP_RESTART:-unless-stopped}
networks:
- default
- internet-access
depends_on:
- postgres
- redis
volumes:
- "${HOST_MUSIC_DIRECTORY_PATH}:/data/music:ro"
- "${HOST_MEDIA_ROOT}:/data/media"
- "${HOST_STATIC_ROOT}:/data/static"
- "${HOST_FUNKWHALE_FRONTEND_PATH}:/frontend"
expose:
- 5000
env_file:
- funkwhale.env
- paths.env
environment:
- FUNKWHALE_HOSTNAME=${FUNKWHALE_HOSTNAME}
web:
build:
context: nginx/.
args:
- IMAGE=${WB_IMG:-nginx}
- TAG=${WB_TAG:-latest}
container_name: ${WB_CONTAINER_NAME:-funkwhale-web}
restart: ${WB_RESTART:-unless-stopped}
networks:
- default
- main-webservices
depends_on:
- api
volumes:
- "${HOST_MUSIC_DIRECTORY_PATH}:/srv/www/music:ro"
- "${HOST_MEDIA_ROOT}:/srv/www/media:ro"
- "${HOST_STATIC_ROOT}:/srv/www/static:ro"
- "${HOST_FUNKWHALE_FRONTEND_PATH}:/srv/www/frontend:ro"
expose:
- 80
env_file:
- nginx.env
environment:
- FUNKWHALE_HOSTNAME=${FUNKWHALE_HOSTNAME}
networks:
default:
internal: true
internet-access:
internal: ${NO_INTERNET_ACC:-false}
main-webservices:
external:
name: ${REVERSE_PROXY_NETWORK}