-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·63 lines (57 loc) · 1.33 KB
/
docker-compose.yml
File metadata and controls
executable file
·63 lines (57 loc) · 1.33 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
volumes:
test-db-data:
services:
base:
build:
context: .
dockerfile: ./docker/apache/Dockerfile.base
image: test-api-base
test-database:
build:
context: ./
dockerfile: ./docker/apache/Dockerfile.${DOCKER_COMPOSE_ENV:-dev}
container_name: app-test-data-item-container
depends_on:
- base
command: ["make", "start-apache-prod"]
restart: always
ports:
- "449:443"
volumes_from:
- app-data
links:
- test-db
networks:
- instamed
- test_db
app-data:
image: alpine:3
container_name: api-test-container
volumes:
- ./:/var/www/html/
- type: bind
source: ./test_db.sqlite
target: /var/test_db.sqlite
command: "true"
test-db:
image: mysql:8
container_name: app-test-db-container
restart: always
ports:
- "3337:3306"
volumes:
- test-db-data:/var/lib/mysql
- ./docker/mysql/:/home/mysql/
- ./docker/mysql/my.cnf:/etc/mysql/conf.d/mysql.cnf
environment:
MYSQL_DATABASE: ${DATABASE_NAME}
MYSQL_USER: ${DATABASE_USER}
MYSQL_PASSWORD: ${DATABASE_PASSWORD}
MYSQL_ROOT_PASSWORD: root
networks:
- test_db
networks:
test_db:
driver: bridge
instamed:
external: true