-
-
Save herloct/cd18ae70f6757a16250b8c4711a5e7cf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
web: | |
build: | |
context: ./ | |
dockerfile: deploy/web.docker | |
volumes: | |
- ./:/var/www | |
ports: | |
- "8081:80" | |
links: | |
- app | |
networks: | |
- simanset | |
app: | |
build: | |
context: ./ | |
dockerfile: deploy/app.docker | |
volumes: | |
- ./:/var/www | |
links: | |
- cache | |
networks: | |
- simanset | |
environment: | |
- "DB_PORT=3306" | |
- "DB_HOST=simanset_mysql" | |
- "REDIS_PORT=6379" | |
- "REDIS_HOST=cache" | |
- "VIRTUAL_HOST=apisimanset.dev" | |
cache: | |
image: redis:3.0 | |
networks: | |
- simanset | |
networks: | |
simanset: | |
external: | |
name: simanset |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
web: | |
build: | |
context: ./ | |
dockerfile: deploy/web.docker | |
volumes: | |
- ./:/var/www | |
ports: | |
- "8080:80" | |
links: | |
- app | |
networks: | |
- simanset | |
app: | |
build: | |
context: ./ | |
dockerfile: deploy/app.docker | |
volumes: | |
- ./:/var/www | |
links: | |
- cache | |
networks: | |
- simanset | |
environment: | |
- "DB_PORT=3306" | |
- "DB_HOST=simanset_mysql" | |
- "REDIS_PORT=6379" | |
- "REDIS_HOST=cache" | |
- "VIRTUAL_HOST=simanset.dev" | |
cache: | |
image: redis:3.0 | |
networks: | |
- simanset | |
networks: | |
simanset: | |
external: | |
name: simanset |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment