-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
36 lines (33 loc) · 1014 Bytes
/
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
# Docker compose configuration for local development
version: '3.3'
services:
# Local MySQL database server to mimic a cloud database
localdb:
image: mysql:5.7.11
volumes:
- riksdagsdata-localdb-var-lib-mysql-persistent:/var/lib/mysql:rw
- ./stack/scripts/:/stack/scripts:ro
ports:
- "53306:3306"
environment:
MYSQL_ROOT_PASSWORD: "local-mysql-pass"
command: "/stack/scripts/localdb-start.sh"
# A container to run worker/administration commands locally - start a shell by running stack/shell.sh
shell:
image: neam/dna-project-base-debian-php:1.0.0-php7.2
#links:
# - localdb
volumes:
- ./stack/scripts/:/stack/scripts:ro
- .:/app:rw
- ../.git:/.git
- ~/.composer:/root/.composer
- ~/.gitconfig:/root/.gitconfig
- ~/.ssh:/root/.ssh:ro
working_dir: '/app'
env_file:
- .env
command: "/stack/scripts/shell-start.sh"
volumes:
riksdagsdata-localdb-var-lib-mysql-persistent:
external: true