-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (58 loc) · 1.26 KB
/
Copy pathdocker-compose.yml
File metadata and controls
61 lines (58 loc) · 1.26 KB
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
networks:
tsa_oa:
services:
database:
container_name: 'database-container'
image: crtpdev.azurecr.io/mariadb:10.11.6-debian-11-r6
# image: mariadb:latest # only for local machine
restart: always
env_file:
- path: .env
required: true
expose:
- 3306
ports:
- '3307:3306'
healthcheck:
interval: 30s
retries: 3
test: ['CMD', 'healthcheck.sh', '--su-mysql', '--connect', '--innodb_initialized']
timeout: 30s
networks:
- tsa_oa
volumes:
- ./docker_volume/database:/var/lib/mysql:rw
backend:
container_name: 'backend-container'
restart: always
env_file:
- path: .env
required: true
build:
dockerfile: Dockerfile
context: '.'
depends_on:
database:
condition: service_healthy
volumes:
- /node_modules
- ./docker_volume/backend:/backend
ports:
- '4000:4000'
networks:
- tsa_oa
frontend:
container_name: 'frontend-container'
restart: always
build:
dockerfile: Dockerfile
context: './frontend'
depends_on:
- backend
volumes:
- /frontend/node_modules
- ./docker_volume/frontend:/usr/src/app
ports:
- '8080:80'
networks:
- tsa_oa