-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·40 lines (38 loc) · 1 KB
/
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
version: '2.1'
volumes:
phpsocket: {}
phplog: {}
services:
api:
image: whatwedo/symfony3
container_name: ticTacToeBot-api
environment:
CONTAINER_TIMEZONE: ${CONTAINER_TIMEZONE}
COMPOSER_ALLOW_SUPERUSER: 1 # Allow Composer to be run as root
volumes:
- ${API_PATH}:/var/www:rw
- ${API_PATH}/var/logs/nginx:/var/log/nginx:rw
ports:
- "9090:80"
client:
image: nginx:latest
container_name: ticTacToeBot-client
depends_on:
- api
environment:
- NGINX_PORT=80
volumes:
- ${CLIENT_PATH}:/usr/share/nginx/html
ports:
- "8080:80"
client-tools:
image: mkenney/npm:latest
container_name: ticTacToeBot-clientTools
command: /bin/sh build.sh
depends_on:
- client
environment:
- PUID=1
- PGID=1
volumes:
- ${CLIENT_PATH}:/src:rw