You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1010 B
YAML
44 lines
1010 B
YAML
version: "3.9"
|
|
services:
|
|
app:
|
|
build: ./infra/php
|
|
volumes:
|
|
- ./infra/php/php.ini:/usr/local/etc/php/php.ini
|
|
- ./backend:/work
|
|
|
|
web:
|
|
image: nginx:1.20-alpine
|
|
ports:
|
|
- mode: host
|
|
protocol: tcp
|
|
published: 80
|
|
target: 80
|
|
- mode: host
|
|
protocol: tcp
|
|
published: 443
|
|
target: 443
|
|
volumes:
|
|
- ./backend:/work
|
|
- /etc/letsencrypt/live/kikikan.xyz:/etc/letsencrypt/live/kikikan.xyz
|
|
- /etc/letsencrypt/archive/kikikan.xyz:/etc/letsencrypt/archive/kikikan.xyz
|
|
# 本番環境
|
|
# - ./infra/nginx/default.conf:/etc/nginx/conf.d/default.conf
|
|
# 開発環境
|
|
- ./infra/nginx/default.dev.conf:/etc/nginx/conf.d/default.conf
|
|
working_dir: /work
|
|
|
|
certbot:
|
|
image: certbot/certbot:v1.7.0
|
|
volumes:
|
|
- ./backend:/work
|
|
- /etc/letsencrypt:/etc/letsencrypt
|
|
command: ["--version"]
|
|
|
|
db:
|
|
build: ./infra/mysql
|
|
volumes:
|
|
- db-store:/var/lib/mysql
|
|
|
|
volumes:
|
|
db-store:
|