-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (47 loc) · 1.24 KB
/
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
version: "3"
services:
app:
container_name: app
build: ./docker/php
volumes:
- ../laravel_vue_ts_seating_chart:/var/www/html/
nginx:
image: nginx
container_name: nginx
ports:
- "8080:80"
volumes:
- ../laravel_vue_ts_seating_chart:/var/www/html/
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- app
postgres:
image: postgres:12.2
container_name: postgres
restart: always
environment:
TZ: Asia/Tokyo
POSTGRES_USER: docker
POSTGRES_PASSWORD: docker
POSTGRES_DB: postgres
volumes:
- ./docker/db/data:/var/lib/postgresql/data
- ./docker/db/sql:/docker-entrypoint-initdb.d
ports:
- 5432:5432
# mysql:
# image: mysql:5.7
# container_name: db-host
# environment:
# MYSQL_ROOT_PASSWORD: root
# MYSQL_DATABASE: database
# MYSQL_USER: docker
# MYSQL_PASSWORD: docker
# TZ: "Asia/Tokyo"
# command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
# volumes:
# - ./docker/db/data:/var/lib/mysql
# - ./docker/db/my.cnf:/etc/mysql/conf.d/my.cnf
# - ./docker/db/sql:/docker-entrypoint-initdb.d
# ports:
# - 3306:3306