-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (37 loc) · 905 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
version: '3.3'
name: ssd_ha
services:
db:
build: ./db
restart: unless-stopped
container_name: ssd_mysql
hostname: ssd_mysql
env_file: .env
ports:
# <Port exposed> : <MySQL Port running inside container>
#prve cislo je externy port, kde je Mysql
- '3306:3306'
expose:
# Opens port 3306 on the container
#cislo portu mysql z externeho prostredia
- '3306'
# Where our data will be persisted
volumes:
- ./mysqlData:/var/lib/mysql # miesto na ulozenie DB
php:
build: ./php
restart: unless-stopped
depends_on:
- db
container_name: ssd_php
env_file: .env
volumes:
- ./phpScripts:/phpScripts:ro
- ./.env:/config/config.ini:ro
#kde su ulozene subory z SSD a ich mapovanie do kontajnera
- ./SSDfiles:/SSD
volumes:
my-db:
networks:
default:
name: ssd-net