-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
64 lines (61 loc) · 1.4 KB
/
compose.yml
File metadata and controls
64 lines (61 loc) · 1.4 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
62
63
64
services:
db:
image: mariadb:latest
container_name: planwise_db
restart: unless-stopped
environment:
MARIADB_DATABASE: planwise
MARIADB_USER: ${DB_USER}
MARIADB_PASSWORD: ${DB_PASSWORD}
MARIADB_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
volumes:
- ./db_data:/var/lib/mysql
healthcheck:
test: ["CMD-SHELL", "mysqladmin ping -h 127.0.0.1 -uroot -p$${MARIADB_ROOT_PASSWORD} || exit 1"]
interval: 10s
timeout: 5s
retries: 5
start_period: 20s
networks:
- planwise-internal
- planwise-external
ports:
- 3306:3306
phpmyadmin:
image: phpmyadmin:latest
container_name: planwise_phpmyadmin
restart: unless-stopped
environment:
PMA_HOST: db
PMA_PORT: 3306
ports:
- "8080:80"
depends_on:
- db
networks:
- planwise-internal
- planwise-external
# planwise:
# build:
# context: .
# Dockerfile: Dockerfile
# container_name: planwise-app
# restart: unless-stopped
# environment:
# DB_HOST: db
# DB_PORT: 3306
# DB_NAME: ${DB_NAME:-planwise}
# DB_USER: ${DB_USER:-planwise}
# DB_PASSWORD: ${DB_PASSWORD:-planwise}
# depends_on:
# - db
# ports:
# - "80:4321"
# networks:
# - planwise-internal
# - planwise-external
networks:
planwise-internal:
internal: true
planwise-external:
external: true