-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
48 lines (44 loc) · 893 Bytes
/
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
version: "3.8"
services:
db:
image: mariadb:10.3
container_name: mysql-db
volumes:
- ./SQL-Backup.sql:/docker-entrypoint-initdb.d/SQL-Backup.sql
environment:
MYSQL_DATABASE: network
MYSQL_USER: user
MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: secret
SERVICE_TAGS: dev
SERVICE_NAME: mysql
ports:
- 3306:3306
networks:
- app-db-network
app:
image: scoma/mycodenetwork:latest
container_name: php-app
depends_on:
- db
volumes:
- app-volume:/usr/src/app
environment:
APP_ENV: production
DB_HOST: db
DB_PORT: 3306
DB_USER: root
DB_PASSWORD: secret
DB_NAME: network
ports:
- 80:80
networks:
- app-db-network
volumes:
app-volume:
driver: local
db-volume:
driver: local
networks:
app-db-network:
driver: bridge