-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
39 lines (36 loc) · 898 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
version: '3.3'
services:
redis:
image: 'redis:alpine'
container_name: copy2cloud-redis
command: redis-server --appendonly yes --requirepass ${REDIS_PASSWORD}
restart: always
networks:
- copy2cloud
ports:
- ${REDIS_PORT}:6379
webserver:
image: 'nginx:alpine'
container_name: copy2cloud-webserver
working_dir: /copy2cloud
restart: always
networks:
- copy2cloud
volumes:
- '.:/copy2cloud'
- './.docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf'
ports:
- ${WEBSERVER_PORT}:80
php-fpm:
build: .docker/php-fpm
container_name: copy2cloud-php
working_dir: /copy2cloud
restart: always
networks:
- copy2cloud
volumes:
- '.:/copy2cloud'
- './.docker/php-fpm/php-ini-overrides.ini:/etc/php/8.1/fpm/conf.d/99-overrides.ini'
networks:
copy2cloud:
driver: bridge