-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
63 lines (63 loc) · 1.29 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
version: '2'
services:
oice-nginx:
image: nginx:latest
ports:
- "80:80"
links:
- oice-server:oice-server
- oice-socket:oice-socket
- oice-web:oice-web
volumes:
- ./upload:/upload
- ./view:/view
- ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/conf/oice.conf:/etc/nginx/oice.conf:ro
oice-db:
image: mysql:5.7
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=true
- MYSQL_DATABASE=modmod
volumes:
- ./database:/docker-entrypoint-initdb.d
ports:
- "3306:3306"
redis:
image: redis:alpine
oice-server:
build: ./oice-server
image: modmod:latest
command: pserve example.ini
ports:
- "6543:6543"
links:
- oice-db:oice-db
- redis
volumes:
- ./upload:/upload
- ./view:/view
oice-socket:
build: ./oice-server/socket.io
ports:
- "8082:8082"
oice-worker:
build: ./rqworker
links:
- oice-socket:oice-socket
- oice-db:oice-db
environment:
- MODMOD_SOCKETIO_HOST=oice-socket
volumes:
- ./upload:/upload
- ./view:/view
depends_on:
- redis
- oice-server
oice-web:
build:
context: ./oice-web
dockerfile: Dockerfile
args:
- SRV_ENV=127.0.0.1
ports:
- "3000:3000"