-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (61 loc) · 1.54 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: "3"
services:
auth-db:
image: mysql:8.0
container_name: auth-db
volumes:
- auth-db:/var/lib/mysql
ports:
- "3306:3306"
networks:
- auth-network
environment:
MYSQL_ROOT_PASSWORD: 'secret'
MYSQL_DATABASE: 'auth'
MYSQL_USER: 'user'
MYSQL_PASSWORD: 'secret'
auth-webserver:
image: nginx:1.22-alpine
container_name: auth-webserver
working_dir: /var/www
volumes:
- ./:/var/www
- ./docker/development/nginx:/etc/nginx/conf.d
ports:
- "8000:80"
networks:
- auth-network
depends_on:
- auth-php
auth-php:
build:
context: .
dockerfile: docker/development/php8.2/Dockerfile
user: "${USER_ID}:${GROUP_ID}"
container_name: auth-php
working_dir: /var/www
volumes:
- ./:/var/www
networks:
- auth-network
depends_on:
- auth-db
auth-frontend:
build:
context: .
dockerfile: docker/development/node/Dockerfile
user: "${USER_ID}:${GROUP_ID}"
environment:
USER_ID: "${USER_ID}"
GROUP_ID: "${GROUP_ID}"
container_name: auth-frontend
volumes:
- ./resources/frontend:/app
ports:
- "4200:4200"
volumes:
auth-db:
driver: local
networks:
auth-network:
driver: bridge