-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
42 lines (39 loc) · 960 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
41
42
version: "3"
services:
mysql:
image: mysql:8
environment:
MYSQL_DATABASE: symfony
MYSQL_USER: symfony
MYSQL_PASSWORD: symfony
MYSQL_ALLOW_EMPTY_PASSWORD: 1
web:
build: deployment/docker/nginx
ports:
- "80:80"
volumes:
- .:/var/www
links:
- php
environment:
NGINX_HOST: ${NGINX_HOST}
NGINX_PORT: ${NGINX_PORT}
php:
build: deployment/docker/php
user: "${COMPOSE_USER_ID-1000}:${COMPOSE_GROUP_ID-1000}"
working_dir: /var/www/web
links:
- mysql
volumes:
- .:/var/www
- ${HOME}/.cache/composer/:/.composer/cache
extra_hosts:
- "host.docker.internal:host-gateway"
node:
build: deployment/docker/node
user: "${COMPOSE_USER_ID-1000}:${COMPOSE_GROUP_ID-1000}"
command: "bash -c 'cd assets && yarn install && yarn watch'"
working_dir: /var/www
volumes:
- .:/var/www
- ${FACTORIO_DIR}:/var/factorio