-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose-dev.yaml
44 lines (39 loc) · 960 Bytes
/
docker-compose-dev.yaml
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
version: "3.8"
services:
gothic:
depends_on:
- mysql
mysql:
platform: linux/x86_64
image: mysql:latest
command: --init-file /data/application/init.sql
volumes:
- ./dev.sql:/data/application/init.sql
- ./build/db:/var/lib/mysql
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- CLIENT_MULTI_STATEMENTS=true
expose:
- '3306'
ports:
- "3306:3306"
#https://stackoverflow.com/questions/55559386/how-to-fix-mbind-operation-not-permitted-in-mysql-error-log
cap_add:
- SYS_NICE # CAP_SYS_NICE
restart: unless-stopped
pg:
platform: linux/x86_64
image: postgres:latest
volumes:
- db_volume:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=password
- PGDATA=var/lib/postgresql/data/db/
expose:
- '5432'
ports:
- "5432:5432"
restart: unless-stopped
volumes:
db_volume: { }