This repository has been archived by the owner on Aug 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
72 lines (69 loc) · 1.6 KB
/
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: "3.8"
services:
api.unico.dev:
platform: linux/amd64
build:
context: .
dockerfile: Dockerfile
depends_on:
db.unico.dev:
condition: service_healthy
environment:
API_LISTEN_PORT: 7179
APP_LOG_FILENAME: app.log
DB_HOST: db.unico.dev
DB_PORT: 3306
DB_DBNAME: api
DB_USER: root
DB_PASSWORD: ac39afe4-b45d-4eef-9960-bae5d0606c4e
networks:
- unico_network_local
ports:
- 7179:7179
db.unico.dev:
platform: linux/amd64
image: mariadb:10.5
environment:
MYSQL_ROOT_PASSWORD: ac39afe4-b45d-4eef-9960-bae5d0606c4e
MYSQL_DATABASE: api
volumes:
- unico_db_data:/var/lib/mysql
- "./schema.sql:/docker-entrypoint-initdb.d/1.sql"
networks:
- unico_network_local
ports:
- 23306:3306
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
retries: 10
pma.unico.dev:
platform: linux/amd64
image: phpmyadmin/phpmyadmin:5
depends_on:
db.unico.dev:
condition: service_healthy
environment:
PMA_HOST: db.unico.dev
PMA_USER: root
PMA_PASSWORD: ac39afe4-b45d-4eef-9960-bae5d0606c4e
networks:
- unico_network_local
ports:
- 23307:80
swagger-ui.unico.dev:
platform: linux/amd64
image: swaggerapi/swagger-ui
environment:
SWAGGER_JSON: /swagger.json
volumes:
- ./docs/swagger.json:/swagger.json
networks:
- unico_network_local
ports:
- 28082:8080
volumes:
unico_db_data:
networks:
unico_network_local:
driver: bridge