-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (72 loc) · 1.88 KB
/
docker-compose.yml
File metadata and controls
77 lines (72 loc) · 1.88 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
65
66
67
68
69
70
71
72
73
74
75
76
77
version: '3.9'
networks:
orbeon-network:
name: orbeon_network
services:
nginx:
container_name: nginx-proxy
image: nginx
ports:
- "4569:80"
networks:
- orbeon-network
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
- ./docker/nginx/logs:/var/log/nginx
orbeon-wrapper: #it is just a name, which will be used only in this file.
image: orbeon-wrapper #name of the image after dockerfile executes
container_name: orbeon-wrapper #name of the container created from docker image
build:
context: . #docker file path (. means root directory)
dockerfile: Dockerfile #docker file name
ports:
- "9090:9090" #docker containter port with your os port
restart: always
networks:
- orbeon-network
depends_on:
- orbeon-db
- orbeon
- nginx
command: bash -c "./docker/run.sh"
volumes:
- ./:/usr/app
environment:
ENV: local
PROFILE: local
orbeon:
build:
context: ./orbeon
dockerfile: Dockerfile
image: orbeon
container_name: orbeon
ports:
- "9091:9090"
restart: always
networks:
- orbeon-network
volumes:
- ./orbeon:/opt/app
depends_on:
- orbeon-db
- nginx
command: bash -c "/opt/app/run.sh"
environment:
CATALINA_OPTS: "-Xms512M -Xmx1024M"
API_URL: http://web:8000/api/v1
orbeon-db:
image: mysql:5.7
restart: always
container_name: orbeon-db
ports:
- "3308:3306"
networks:
- orbeon-network
environment:
MYSQL_ROOT_PASSWORD: test_password
MYSQL_DATABASE: orbeon_db
MYSQL_USER: test_username
MYSQL_PASSWORD: test_password
volumes:
- ./mysql-data-orbeon:/var/lib/mysql
- ./orbeon/sql:/opt/sql