-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
55 lines (51 loc) · 962 Bytes
/
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
version: "3.2"
networks:
newspaper_net:
driver: bridge
volumes:
newspaper_db: ~
newspaper_client: ~
services:
client:
build: ./client
ports:
- 3000:3000
volumes:
- './client:/usr/src/app'
- '/usr/src/app/node_modules'
networks:
- newspaper_net
env_file:
- client/.env
environment:
- REACT_APP_SERVER_URL=localhost:8080
links:
- server
newspaper_db:
build: ./database
networks:
- newspaper_net
env_file:
- database/.env
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
volumes:
- "newspaper_db:/var/lib/mysql"
server:
build:
context: ./server
networks:
- newspaper_net
volumes:
- './server:/var/www'
- '/var/www/vendor'
ports:
- 8080:80
links:
- newspaper_db
depends_on:
- newspaper_db
env_file:
- server/.env
environment:
- DB_HOST=newspaper_db