-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
62 lines (59 loc) · 1.54 KB
/
docker-compose.dev.yml
File metadata and controls
62 lines (59 loc) · 1.54 KB
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
54
55
56
57
58
59
60
61
62
version: '2.4'
services:
# httpd
click-web:
image: ghcr.io/wetfish/click:dev-nginx
build:
context: .
dockerfile: Dockerfile.nginx
container_name: click-web
restart: unless-stopped
volumes:
- ./config/nginx.conf:/etc/nginx/conf.d/default.conf
- ./wwwroot:/var/www
# normally behind centeral traefik defined in production-manifests/services/traefik
ports:
- "127.0.0.1:2401:80"
# join click-internal network
networks:
click-internal: {}
# php-fpm
click-php:
# for development, build the image
image: ghcr.io/wetfish/click:dev-php
build:
context: .
dockerfile: Dockerfile.php
container_name: click-php
restart: unless-stopped
# db connection info
env_file:
- ./php.env
volumes:
- ./wwwroot:/var/www
- ./config/php-fpm.conf:/etc/php/5.6/fpm/php-fpm.conf:ro
- ./config/php-fpm-pool.conf:/etc/php/5.6/fpm/pool.d/www.conf:ro
- ./config/php.ini:/etc/php/5.6/fpm/php.ini:ro
tmpfs: /tmp
networks:
click-internal: {}
# database
click-db:
image: docker.io/mariadb:10.10
container_name: click-db
restart: unless-stopped
command: --sql-mode=""
env_file:
- ./mariadb.env
volumes:
- ./schema.sql:/docker-entrypoint-initdb.d/setup.sql
- ./db/data:/var/lib/mysql
# dev env: expose mariadb on 127.0.0.1:3401
ports:
- "127.0.0.1:3401:3306"
networks:
click-internal: {}
networks:
# ephemeral, created for us by compose
click-internal:
driver: bridge