-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathdocker-compose.yml
51 lines (46 loc) · 918 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: "3.6"
services:
db:
container_name: database
build: ./mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: php
MYSQL_USER: phpmyadmin
MYSQL_PASSWORD: 531486b2bf646636a6a1bba61e78ec4a4a54efbd
MYSQL_DATABASE: abstractwallet
networks:
- backend
server:
build: "./apache/"
depends_on:
- db
networks:
- backend
ports:
- 80:80
volumes:
- ./src/:/var/www/html/
web:
build:
context: "./web"
dockerfile: Dockerfile
depends_on:
- server
networks:
- frontend
ports:
- 3000:80
php:
build:
context: "./src"
dockerfile: Dockerfile
depends_on:
- db
networks:
- backend
command: /tmp/wait-for-it.sh -t 0 database:3306 -- php-fpm
networks:
frontend:
backend: