-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
48 lines (44 loc) · 1.1 KB
/
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
services:
site:
image: "site:latest"
environment:
- SPRING_DATASOURCE_URL=jdbc:mysql://database:3306/astro
- MYSQL_USER=fluke
- MYSQL_PASSWORD=1#fluk1n4torL33T!?
- PRIVATE_PATH=/astro/private
- PUBLIC_PATH=/astro/public
volumes:
- private_file_data:/astro/private
- public_file_data:/astro/public
- ${PWD}/placeholder.jpg:/astro/public/placeholder.jpg
# secrets:
# - astrometry_api_key
depends_on:
database:
condition: service_healthy
ports:
- "8080:8080"
database:
image: "mysql:lts"
command: [ "mysqld", "--mysql-native-password=ON" ]
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=astro
- MYSQL_USER=fluke
- MYSQL_PASSWORD=1#fluk1n4torL33T!?
volumes:
- database_data:/var/lib/mysql
ports:
- "3306:3306"
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
interval: 10s
timeout: 5s
retries: 5
volumes:
private_file_data:
public_file_data:
database_data:
#secrets:
# astrometry_api_key:
# file: