-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (49 loc) · 938 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
version: "3.8"
services:
app:
environment:
- CONFIG_FILE_NAME=config.compose
container_name: skel_ws
build: .
ports:
- "8000:8000"
restart: on-failure
volumes:
- api:/usr/src/app/
depends_on:
mysql:
condition: service_healthy
redis:
condition: service_healthy
networks:
- fullstack
mysql:
image: mysql:latest
container_name: skel_mysql
ports:
- "3306:3306"
environment:
- MYSQL_PASSWORD=
- MYSQL_DATABASE=skel
- MYSQL_ALLOW_EMPTY_PASSWORD=true
volumes:
- database_mysql:/var/lib/mysql
networks:
- fullstack
healthcheck:
test: "exit 0"
redis:
image: redis:latest
container_name: skel_redis
ports:
- "6379:6379"
networks:
- fullstack
healthcheck:
test: "exit 0"
volumes:
api:
database_mysql:
networks:
fullstack:
driver: bridge