40 lines
718 B
YAML
40 lines
718 B
YAML
|
networks:
|
||
|
default:
|
||
|
driver: bridge
|
||
|
ipam:
|
||
|
driver: default
|
||
|
config:
|
||
|
- subnet: 10.0.2.0/24
|
||
|
|
||
|
services:
|
||
|
redis:
|
||
|
image: redis
|
||
|
networks:
|
||
|
default:
|
||
|
ipv4_address: 10.0.2.2
|
||
|
|
||
|
lj:
|
||
|
build:
|
||
|
dockerfile: Dockerfile
|
||
|
context: .docker/
|
||
|
ports:
|
||
|
- "9001:9001"
|
||
|
- "9002:9002"
|
||
|
volumes:
|
||
|
- .:/project
|
||
|
- .docker/LJ.conf.docker:/project/LJ.conf
|
||
|
networks:
|
||
|
default:
|
||
|
ipv4_address: 10.0.2.3
|
||
|
|
||
|
apache:
|
||
|
image: httpd
|
||
|
ports:
|
||
|
- "8080:80"
|
||
|
volumes:
|
||
|
- ./www:/usr/local/apache2/htdocs/
|
||
|
- .docker/config.js.docker:/usr/local/apache2/htdocs/config.js:ro
|
||
|
networks:
|
||
|
default:
|
||
|
ipv4_address: 10.0.2.4
|