-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
40 lines (40 loc) · 1.23 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
networks:
app-net:
driver: bridge
services:
app:
build: .
# Warning! scraping does NOT work in hot reload mode
# entrypoint: ["npm", "run", "dev"] # DEV (Uncomment to turn on hot reloading)
depends_on:
- database
volumes:
- .:/app
- /app/node_modules
environment:
- PORT=4100
- SECRET=47453756456554697 # Secret for cookie parsing
- DB_HOST=database
- DB_USER=server
- DB_PASS=password
- DB_NAME=gwiazdy-zsi
ports:
- 4100:4100
networks:
- app-net
database:
image: mysql:latest
volumes:
- ./database/init/:/docker-entrypoint-initdb.d/:ro
- ./database/data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_USER=server
- MYSQL_PASSWORD=password
- MYSQL_DATABASE=gwiazdy-zsi
expose:
- 3306
# ports: # DEV (Required for this \/)
# - 3306:3306 # DEV (Uncomment to be able to connect to database from outside of docker network)
networks:
- app-net