mirror of
https://github.com/trambarhq/relaks-wordpress-example.git
synced 2025-09-03 05:02:34 +02:00
Added configuration for accessing remote instance of WordPress (issue #23).
This commit is contained in:
39
docker-compose-remote.yml
Normal file
39
docker-compose-remote.yml
Normal file
@@ -0,0 +1,39 @@
|
||||
version: "2"
|
||||
services:
|
||||
node:
|
||||
image: node:8
|
||||
volumes:
|
||||
- .:/opt/example
|
||||
- web_cache:/var/cache/nginx
|
||||
networks:
|
||||
network:
|
||||
ipv4_address: 172.130.0.4
|
||||
environment:
|
||||
WORDPRESS_HOST: https://realworldtech.com
|
||||
NGINX_HOST: http://nginx
|
||||
NGINX_CACHE: /var/cache/nginx/data
|
||||
command: [ node, /opt/example/server/index.js ]
|
||||
restart: always
|
||||
nginx:
|
||||
depends_on:
|
||||
- node
|
||||
image: nginx:latest
|
||||
volumes:
|
||||
- ./server/nginx-ext:/etc/nginx/conf.d
|
||||
- web_cache:/var/cache/nginx
|
||||
networks:
|
||||
network:
|
||||
ipv4_address: 172.130.0.5
|
||||
ports:
|
||||
- 8000:80
|
||||
restart: always
|
||||
volumes:
|
||||
db_data:
|
||||
web_cache:
|
||||
networks:
|
||||
network:
|
||||
driver: bridge
|
||||
ipam:
|
||||
config:
|
||||
- subnet: 172.130.0.0/16
|
||||
gateway: 172.130.0.1
|
Reference in New Issue
Block a user