forked from deepmatrix/ctr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
72 lines (67 loc) · 1.26 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
version: '3'
services:
nginx:
image: nginx:alpine
ports:
- "8001:80"
- "443:443"
depends_on:
- "ct-api"
- "ct-socket"
- "db"
links:
- "ct-api"
- "ct-socket"
- "db"
volumes:
- ./:/var/www/cybertown
- ./docker/nginx/vhost.conf:/etc/nginx/conf.d/cybertown.conf
- ./docker/ssl:/etc/ssl
working_dir:
/var/www/cybertown
db:
image: mysql:5.7
ports:
- "3360:3306"
volumes:
- data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: pw
MYSQL_DATABASE: cybertown
ct-api:
image: node:14
depends_on:
- "db"
links:
- "db"
volumes:
- ./api:/usr/src/app
working_dir:
/usr/src/app
ports:
- "3000:3000"
- "9229:9229"
command: bash -c "npm install && npm run dev"
ct-socket:
image: node:14
depends_on:
- "db"
links:
- "db"
volumes:
- ./spa:/usr/src/app
working_dir:
/usr/src/app
ports:
- "8000:8000"
- "9230:9230"
command: bash -c "npm install && npm run dev-server"
mailhog:
image: mailhog/mailhog:latest
logging:
driver: 'none' # disable saving logs
ports:
- 1025:1025
- 8025:8025
volumes:
data: