-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (44 loc) · 1022 Bytes
/
docker-compose.yml
File metadata and controls
49 lines (44 loc) · 1022 Bytes
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
name: marine-leisure
services:
db:
image: mysql:8.0
networks:
- marine-net
container_name: marine_db
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
MYSQL_DATABASE: marine
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
ports:
- "3307:3306"
volumes:
- db_data:/var/lib/mysql
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-p${DB_ROOT_PASSWORD}" ]
timeout: 20s
retries: 10
interval: 10s
start_period: 40s
app:
image: ghcr.io/prgrms-web-devcourse-final-project/web5_7_7starball_be:latest
networks:
- marine-net
container_name: marine_app
restart: always
depends_on:
db:
condition: service_healthy
ports:
- "8080:8080"
environment:
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
env_file:
- .env
volumes:
db_data:
networks:
marine-net:
driver: bridge