Skip to content

Commit

Permalink
Merge pull request smrealms#394 from hemberger/depends-on
Browse files Browse the repository at this point in the history
docker-compose.yml: update dependencies
  • Loading branch information
hemberger authored Mar 26, 2018
2 parents 24edd06 + a8f6a60 commit 5ec1a67
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ services:

smr:
extends: smr-common
# Links cannot be defined in extended services (i.e. smr-common)
links:
# depends_on cannot be defined in extended services (i.e. smr-common)
depends_on:
- mysql

smr-dev:
extends: smr-common
# Links cannot be defined in extended services (i.e. smr-common)
links:
# depends_on cannot be defined in extended services (i.e. smr-common)
depends_on:
- mysql
volumes:
# Mount the source code instead of copying it.
Expand All @@ -40,7 +40,7 @@ services:
flyway:
image: boxfuse/flyway:latest-alpine
command: -url=jdbc:mysql://${MYSQL_HOST}/smr_live -user=smr -password=${MYSQL_PASSWORD} migrate
links:
depends_on:
- mysql
volumes:
- ./db/patches:/flyway/sql:ro
Expand Down Expand Up @@ -68,27 +68,35 @@ services:
# Publish to port 8080
ports:
- 8080:80
links:
- mysql:db
environment:
PMA_HOST: mysql
depends_on:
- mysql

discord:
build:
context: .
dockerfile: ./tools/discord/Dockerfile
depends_on:
- mysql
volumes:
- ./config:/smr/config

irc:
build:
context: .
dockerfile: ./tools/irc/Dockerfile
depends_on:
- mysql
volumes:
- ./config:/smr/config

npc:
build:
context: .
dockerfile: ./tools/npc/Dockerfile
depends_on:
- mysql
volumes:
- ./config:/smr/config

Expand Down

0 comments on commit 5ec1a67

Please sign in to comment.