-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-test.yaml
44 lines (40 loc) · 982 Bytes
/
docker-compose-test.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
version: '3.8'
services:
# *-*-*-*-*-*-*-*-*-* App *-*-*-*-*-*-*-*-*-*
server:
container_name: task-scrape-back
image: task-scrape-back
restart: always
build:
context: .
dockerfile: Dockerfile.back
env_file: ./website/database.env
depends_on:
mysql-headless:
condition: service_healthy
# *-*-*-*-*-*-*-*-* Database *-*-*-*-*-*-*-*-*
mysql-headless:
container_name: mysql-headless
image: mysql:5.7
env_file: ./website/database.env
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
interval: 10s
timeout: 20s
retries: 10
# *-*-*-*-*-*-*-*-* Frontend *-*-*-*-*-*-*-*-*
frontend:
container_name: task-scrape-front
image: task-scrape-front
restart: always
depends_on:
- server
build:
context: .
dockerfile: Dockerfile.front
ports:
- 80:80
networks:
default:
name: test-network
external: true