-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
53 lines (48 loc) · 1.12 KB
/
docker-compose.yaml
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
version: "3.6"
services:
#MySQL Service
db:
build: ./mysql
container_name: db
command: mysqld --default-authentication-plugin=mysql_native_password
restart: always
tty: true
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: baubau12
MYSQL_DATABASE: mailerlite
MYSQL_USER: dev
MYSQL_PASSWORD: baubau12
SERVICE_TAGS: dev
SERVICE_NAME: mysql
volumes:
- dbdata:/var/lib/mysql/
networks:
- app-network
app:
container_name: alex_florea
build: .
command: >
sh -c "cd /app && php -S 0.0.0.0:8080 -t public"
ports:
- "49170:8080"
networks:
- app-network
ui:
container_name: ui
build: ./Ui
command: >
sh -c "cd /app && php -S 0.0.0.0:8080 -t Ui"
ports:
- "9002:8080"
networks:
- app-network
#Docker Networks
networks:
app-network:
driver: bridge
#Volumes
volumes:
dbdata:
driver: local