-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (54 loc) · 1.22 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
version: '3.8'
services:
golang_app:
image: andrenormanlang/cms-golang:0.1
ports:
- "8080:8080"
volumes:
- type: bind
source: .
target: /gocms
volume:
nocopy: true
command: ./gocms/compose-run.sh
depends_on:
mariadb:
condition: service_healthy
restart: always
networks:
- common-net
golang_admin_app:
image: andrenormanlang/cms-golang:0.1
ports:
- "8081:8081"
volumes:
- type: bind
source: .
target: /gocms
volume:
nocopy: true
command: ./gocms/compose-admin-run.sh
depends_on:
mariadb:
condition: service_healthy
environment:
- PORT=8081
restart: always
networks:
- common-net
mariadb:
image: mariadb:11.2.3-jammy
container_name: mariadb
environment:
MARIADB_PASSWORD: shiva7
MARIADB_DATABASE: cms-and-go
MARIADB_ROOT_PASSWORD: shiva7
healthcheck:
test: [ "CMD", "mariadb", "-u", "root", "-pshiva7", "-e", "USE cms-and-go" ]
interval: 10s
timeout: 10s
retries: 10
networks:
- common-net
networks:
common-net: {}