forked from alokmenghrajani/openaccounting-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (44 loc) · 974 Bytes
/
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
services:
oa-mysql:
container_name: openaccounting-mysql
image: mariadb:11.1.2
networks:
- network1
volumes:
- ./data:/var/lib/mysql
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: openaccounting
healthcheck:
test: ["CMD-SHELL", "exit | mariadb -h localhost -P 3306 -u root -psecret"]
interval: 15s
timeout: 10s
retries: 3
oa-server:
container_name: openaccounting-server
build: server/
networks:
- network1
depends_on:
oa-mysql:
condition: service_healthy
oa-web:
container_name: openaccounting-web
build: web/
networks:
- network1
oa-proxy:
container_name: openaccounting-proxy
build: proxy/
networks:
- network1
- network2
ports:
- 8080:8080
- 4200:4200
networks:
network1:
internal: true
network2:
internal: false