-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
82 lines (75 loc) · 2.16 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
version: '3'
services:
mongo:
image: mongo:4.4
container_name: assistant-mongo
restart: always
networks:
- assistant
hostname: assistant-mongo
expose:
- 27017
volumes:
- ${ASSISTANT_DATABASE_VOLUME}:/data/db
nginx:
image: nginx:latest
container_name: assistant-nginx
restart: always
networks:
- assistant
hostname: assistant-nginx
expose:
- 80
links:
- front
ports:
- "9090:80"
volumes:
- ${ASSISTANT_FRONTEND_VOLUME}:/data
- ./.docker/nginx/conf/default.conf:/etc/nginx/conf.d/default.conf
front:
build: ./.docker/php-fpm
image: assistant-front
container_name: assistant-front
restart: always
networks:
- assistant
hostname: assistant-front
links:
- mongo
- music-classifier
- music-similarity
volumes:
- ${ASSISTANT_FRONTEND_VOLUME}:/data
- ${ASSISTANT_COLLECTION_VOLUME}:/collection
- ${ASSISTANT_METADATA_VOLUME}:/metadata
- ./.docker/php-fpm/conf/php.ini:/usr/local/etc/php/php.ini
music-classifier:
build: ./.docker/music-classifier
image: assistant-music-classifier
container_name: assistant-music-classifier
restart: always
networks:
- assistant
hostname: assistant-music-classifier
ports:
- 22
volumes:
- ${ASSISTANT_COLLECTION_VOLUME}:/collection
- ${ASSISTANT_METADATA_VOLUME}:/metadata
music-similarity:
build: ./.docker/music-similarity
image: assistant-music-similarity
container_name: assistant-music-similarity
restart: always
networks:
- assistant
hostname: assistant-music-similarity
ports:
- 22
volumes:
- ${ASSISTANT_COLLECTION_VOLUME}:/collection
- ${ASSISTANT_METADATA_VOLUME}:/metadata
networks:
assistant:
name: assistant-network