-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
53 lines (49 loc) · 985 Bytes
/
docker-compose.yaml
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
version: "3.8"
services:
mariadb:
image: mariadb:10.5
container_name: gcode-db
volumes:
- gcode-data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: gcode
MYSQL_DATABASE: galaxieonCode
networks:
- gcode-network
server:
build:
context: .
dockerfile: docker/Dockerfile.dev
image: gcode-server:dev
container_name: gcode-dev-server
depends_on:
- mariadb
environment:
PORT: "80"
DB_HOST: mariadb
DB_USER: root
DB_PASS: gcode
volumes:
- /home/node/app/node_modules
- .:/home/node/app/
networks:
- gcode-network
nginx:
build:
context: nginx
dockerfile: ./Dockerfile
image: gcode-nginx:dev
container_name: gcode-nginx
depends_on:
- server
ports:
- "80:80"
networks:
- gcode-network
volumes:
gcode-data:
name: gcode-data
networks:
gcode-network:
name: gcode-network
driver: bridge