-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
74 lines (70 loc) · 1.86 KB
/
docker-compose.yaml
File metadata and controls
74 lines (70 loc) · 1.86 KB
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
65
66
67
68
69
70
71
72
73
74
version: "3.9"
services:
python:
container_name: python
build:
context: ./python
dockerfile: ./docker/Dockerfile
volumes:
- ./python/requirements:/requirements
- ./python/modules:/home/pythonuser/modules
- ./python/scripts:/home/pythonuser/scripts
- ./python/tests:/home/pythonuser/tests
- ./python/pytest.ini:/home/pythonuser/pytest.ini
ports:
- 10001:10001
networks:
- development
web:
container_name: web
build:
context: ./web
dockerfile: ./docker/Dockerfile
volumes:
- ./web/src:/home/nodeuser/src
- ./web/package-lock.json:/home/nodeuser/package-lock.json
- ./web/package.json:/home/nodeuser/package.json
- ./web/tsconfig.json:/home/nodeuser/tsconfig.json
- ./web/webpack.config.js:/home/nodeuser/webpack.config.js
ports:
- 10000:10000
networks:
- development
postgres:
# https://hub.docker.com/_/postgres
container_name: postgres
image: postgres:latest
profiles:
- postgres
ports:
- 5432:5432
environment:
# - POSTGRES_USER=${DB_USER}
# - POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_USER=postgres
- POSTGRES_HOST_AUTH_METHOD=trust
# volumes:
# - ./databases/init_postgres:/docker-entrypoint-initdb.d
networks:
- development
mariadb:
# https://hub.docker.com/_/mariadb
container_name: mariadb
profiles:
- mariadb
image: mariadb:latest
environment:
- MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=true
# - MARIADB_RANDOM_ROOT_PASSWORD=true
# - MARIADB_USER=${DB_USER}
# - MARIADB_PASSWORD=${DB_PASSWORD}
ports:
- 3306:3306
# volumes:
# - ./databases/init_mariadb:/docker-entrypoint-initdb.d
networks:
- development
networks:
development:
name: development
driver: bridge