-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (37 loc) · 836 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (37 loc) · 836 Bytes
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
version: '2.1'
services:
backend:
container_name: $CONTAINER_NAME
image: $IMAGE_RUNTIME
ports:
- '80:8000'
environment:
VENV_DIR: /$VENV_DIR
volumes:
- './$APP_DIR:/$APP_DIR'
- './$VENV_DIR:/$VENV_DIR'
- './wait-for-it.sh:/wait-for-it.sh'
depends_on:
- mysql
entrypoint: /wait-for-it.sh -t 30 mysql:3306 -- /resources/runservices.sh
mysql:
container_name: mysql
image: mariadb
volumes:
- ./mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: $MYSQL_PWD
MYSQL_DATABASE: $MYSQL_DB_NAME
ports:
- $MYSQL_PORT:3306
adminer:
container_name: adminer
image: adminer
ports:
- 8080:8080
depends_on:
- mysql
networks:
default:
external:
name: $DOCKER_NETWORK