-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
73 lines (58 loc) · 1.34 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
73
version: "3"
services:
app:
build:
context: .
command: sh -c "make test"
links:
- mysql
- postgresql
- oracle
environment:
# TEST_ARGS: -v
MYSQL_HOST: mysql
MYSQL_PORT: 3306
MYSQL_USER: root
MYSQL_PASSWORD: root
MYSQL_DATABASE: plant_erd_test
POSTGRES_HOST: postgresql
POSTGRES_PORT: 5432
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DATABASE: plant_erd_test
ORACLE_SYSTEM_PASSWORD: oracle
ORACLE_HOST: oracle
ORACLE_USER: system
ORACLE_PASSWORD: oracle
ORACLE_PORT: 1521
ORACLE_SERVICE: xe
LD_LIBRARY_PATH: /opt/oracle/instantclient
PKG_CONFIG_PATH: /usr/local/lib/pkgconfig/
NLS_LANG: AMERICAN_AMERICA.UTF8
volumes:
- go-mod:/go/pkg/mod
mysql:
image: mysql:8
ports:
- 3306:3306
environment:
MYSQL_DATABASE: plant_erd_test
MYSQL_ROOT_PASSWORD: root
MYSQL_ROOT_HOST: "%"
postgresql:
image: postgres:12-alpine
ports:
- 5432:5432
environment:
POSTGRES_DB: plant_erd_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
oracle:
image: deepdiver/docker-oracle-xe-11g:2.0
ports:
- 1521:1521
environment:
ORACLE_SYSTEM_PASSWORD: oracle
volumes:
go-mod:
driver: local