-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (49 loc) · 1.06 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
version: '3.8'
services:
app:
container_name: app
build:
context: .
dockerfile: Dockerfile
args:
bin: server
dir: /go/src/github.com/alr-lab/practical-test-pyramid-go
environment:
APPLICATION_PORT: '8080'
EXTERNAL_API_HOST: 'http://mockapi:8081'
command: ./server
ports:
- "8080:8080"
networks:
- app
mysql:
container_name: datastore
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: app
command: mysqld --sql_mode="NO_ENGINE_SUBSTITUTION" --lower_case_table_names=0 --skip-innodb-adaptive-hash-index
volumes:
- mysql-data:/var/lib/mysql:cached
ports:
- "3306:3306"
networks:
- app
mockapi:
container_name: mockapi
build:
context: .
dockerfile: docker/Dockerfile.mockapi
args:
bin: mockapi
dir: /go/src/github.com/alr-lab/practical-test-pyramid-go
command: ./mockapi
ports:
- "8081:8081"
networks:
- app
volumes:
mysql-data:
networks:
app:
name: service