Skip to content

Commit

Permalink
fix the docker-compose.yml of problem2
Browse files Browse the repository at this point in the history
  • Loading branch information
bbq-all-stars committed Jan 21, 2022
1 parent ea43faa commit 1cd751f
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions problem2/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,35 @@ services:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf
# app:
# build: ../problem1/app/
# container_name: minimal_sns_app
# volumes:
# NOTE: for ruby
# build: app/ruby
# volumes:
# - socket:/var/run/unicorn/
# NOTE: for go
# build: app/go
# volumes:
# - ./app/go:/app
# ports:
# - "1323:1323"
# networks:
# - front
# - back
# environment:
# - "TZ=Asia/Tokyo"
# TZ: "Asia/Tokyo"
db:
image: mysql:latest
container_name: db
hostname: db
networks:
- back
ports:
- "3306:3306"
volumes:
- ./mysql/my.cnf:/etc/mysql/my.cnf
- ./mysql/conf.d/mysql.cnf:/etc/mysql/conf.d/mysql.cnf
- ./mysql/0_init.sql:/docker-entrypoint-initdb.d/0_init.sql
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: app
TZ: "Asia/Tokyo"

0 comments on commit 1cd751f

Please sign in to comment.