-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
47 lines (46 loc) · 979 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
40
41
42
43
44
45
46
47
services:
web-blockchain:
image: nginx:latest
container_name: web-blockchain
restart: on-failure:5
ports:
- "8888:80"
volumes:
- ./:/var/www/app
- ./nginx/default-blockchain.conf:/etc/nginx/conf.d/default.conf
links:
- php-fpm-blockchain
depends_on:
- php-fpm-blockchain
networks:
- blockchain-net
php-fpm-blockchain:
build:
context: .
args:
- USER_ID
- GROUP_ID
container_name: php-fpm-blockchain
restart: on-failure:5
command: >
sh -c "cd /var/www/app && composer install && php-fpm -F -R"
volumes:
- ./:/var/www/app
env_file:
- ./.env
depends_on:
- redis
links:
- redis
networks:
- blockchain-net
redis:
image: redis:alpine
platform: ${PLATFORM}
container_name: redis-blockchain
restart: on-failure:5
networks:
- blockchain-net
networks:
blockchain-net:
driver: bridge