-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (37 loc) · 1021 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
version: '3.0'
services:
internations-app:
container_name: internations-app
build: .
environment:
XDEBUG_CONFIG: remote_host=172.49.0.1
APP_ENV: dev
APP_SECRET: 1a7t82xc75935d8efrc0e22a5c9b7518d
HEROKU_APP_DOMAIN: https://python-exerc.herokuapp.com
HEROKU_APP_CLIENT_CACHE_TTL: 10 # seconds
volumes:
- ./application:/var/www/html/internations-app
networks:
localnet:
ipv4_address: 172.49.0.4
internation-webserver:
container_name: internations-webserver
build: ./webserver
networks:
localnet:
ipv4_address: 172.49.0.5
volumes:
- ./application:/var/www/html/internations-app
- ./webserver/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./webserver/nginx/sites/:/etc/nginx/sites-available
- ./webserver/nginx/conf.d/:/etc/nginx/conf.d
ports:
- 80:80
depends_on:
- internations-app
networks:
localnet:
driver: bridge
ipam:
config:
- subnet: 172.49.0.0/16