-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.dev.yml
81 lines (75 loc) · 1.72 KB
/
docker-compose.dev.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.8"
services:
database:
image: mysql:5.7
container_name: matchbot-db
restart: unless-stopped
tty: true
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
ports:
- "4000:3306"
volumes:
- "./mysql/data:/var/lib/mysql/"
networks:
- matchbot-network
redis:
image: redis:6-alpine
container_name: matchbot-redis
restart: unless-stopped
tty: true
command: redis-server --save 60 1 --loglevel warning --requirepass ${REDIS_PASSWORD}
ports:
- "4001:6379"
volumes:
- ./redis:/data
networks:
- matchbot-network
backend:
container_name: matchbot-api
restart: unless-stopped
build:
context: ./api
dockerfile: Dockerfile
environment:
DB_DATABASE: ${MYSQL_DATABASE}
DB_USER: ${MYSQL_USER}
DB_PASSWORD: ${MYSQL_PASSWORD}
volumes:
- "./api:/var/www/matchbot/api"
networks:
- matchbot-network
frontend:
container_name: matchbot-angular
restart: unless-stopped
tty: true
build:
context: ./angular
dockerfile: Dockerfile.dev
volumes:
- "./angular:/usr/local/app"
ports:
- 4002:4200
- 49153:49153
networks:
- matchbot-network
webserver:
image: nginx:alpine
container_name: matchbot-nginx
restart: unless-stopped
tty: true
ports:
- "80:80"
- "443:443"
volumes:
- "./api:/var/www/matchbot/api"
- "./angular:/var/www/matchbot/angular"
- "./nginx/:/etc/nginx/conf.d/"
networks:
- matchbot-network
networks:
matchbot-network:
driver: bridge