-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
66 lines (60 loc) · 1.22 KB
/
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
65
services:
nginx:
image: nginx:1.25.3-alpine
ports:
- 8080:80
depends_on:
- localstack
- mysql
- awscli
volumes:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- .:/var/www/html
networks:
- adjoe
test-task:
build:
context: .
dockerfile: docker/Dockerfile
image: adjoe-test/php
networks:
- adjoe
depends_on:
- localstack
- mysql
- awscli
volumes:
- ./:/var/www/html
mysql:
image: mysql:8.0
ports:
- 3306:3306
environment:
- MYSQL_DATABASE=adjoe
- MYSQL_USER=adjoe
- MYSQL_PASSWORD=adjoe
- MYSQL_ROOT_PASSWORD=adjoe
networks:
- adjoe
localstack:
image: localstack/localstack:3.2
user: root
environment:
- DATA_DIR=/tmp/localstack/data
- DEFAULT_REGION=eu-central-1
- SERVICES=sqs
ports:
- 4566:4566
networks:
- adjoe
awscli:
depends_on:
- localstack
image: adjoe-test/awscli
command: 'sqs create-queue --queue-name my-queue --region=eu-central-1 --endpoint-url="http://localstack:4566"'
networks:
- adjoe
networks:
adjoe:
name: adjoe-test
driver: bridge