-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (47 loc) · 1.07 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
version: '3'
services:
react:
container_name: react
build: ./docker/react
command: yarn start
volumes:
- ./web:/app
ports:
- 3000:3000
server:
container_name: server
build: ./docker/go
command: realize start --server
volumes:
- ./golang:/app
ports:
- 8000:8000
- 5002:5002
db:
container_name: mysql
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: docker
ports:
- 3306:3306
volumes:
- ./db:/var/lib/mysql
test:
container_name: test
image: nginx
ports:
- 8080:80
volumes:
- ./docker/nginx/test/:/etc/nginx/conf.d/
depends_on:
- react
nginx:
container_name: nginx
image: nginx
ports:
- 80:80
volumes:
- ./web/build:/var/www
- ./docker/nginx/:/etc/nginx/conf.d/
depends_on:
- react